﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238

namespace Coder.Pages
{
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class ExtendedSplash : Page
    {
        public ExtendedSplash()
        {
            this.InitializeComponent();
            // Position the extended splash screen image in the same location as the splash screen image.
            this.extendedSplashImage.SetValue(Canvas.LeftProperty, App.SplashScreen.ImageLocation.X);
            this.extendedSplashImage.SetValue(Canvas.TopProperty, App.SplashScreen.ImageLocation.Y);
            this.extendedSplashImage.Height = App.SplashScreen.ImageLocation.Height;
            this.extendedSplashImage.Width = App.SplashScreen.ImageLocation.Width;

            // Position the extended splash screen's progress ring.
            this.ProgressRing.SetValue(Canvas.TopProperty, App.SplashScreen.ImageLocation.Y + App.SplashScreen.ImageLocation.Height + 32);
            this.ProgressRing.SetValue(Canvas.LeftProperty, App.SplashScreen.ImageLocation.X + (App.SplashScreen.ImageLocation.Width / 2) - 32);
        }
    }
}
